<?php

/*
|--------------------------------------------------------------------------
| Web Routes 管理员端路由, 前缀(admin)已加到 RouteServiceProvider.php 里
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::auth();

// 访问 /admin
Route::get('/', 'Auth\LoginController@redirectToLogin');

Route::group([
    'middleware' => ['auth:admin', 'admin.page.sidebar'],
], function () {

    Route::get('dashboard', 'DashboardController@index');

    // 系统权限管理
    Route::resource('admins', 'AdminController');
});


